package cn.stylefeng.guns.modular.storeProcurement.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.storeProcurement.entity.StoreProcurement;
import cn.stylefeng.guns.modular.storeProcurement.model.params.StoreProcurementParam;
import cn.stylefeng.guns.modular.storeProcurement.model.result.StoreProcurementResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 门店采购单 服务类
 * </p>
 *
 * @author wp
 * @since 2025-09-02
 */
public interface StoreProcurementService extends IService<StoreProcurement> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-09-02
     */
    void add(StoreProcurementParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-09-02
     */
    void delete(StoreProcurementParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-09-02
     */
    void update(StoreProcurementParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-09-02
     */
    StoreProcurementResult findBySpec(StoreProcurementParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-09-02
     */
    List<StoreProcurementResult> findListBySpec(StoreProcurementParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-09-02
     */
     LayuiPageInfo findPageBySpec(StoreProcurementParam param,String condition);

    boolean checkCustomerOrder(String orderOutNumber);

    LayuiPageInfo findPageByStore(StoreProcurementParam storeProcurementParam, String condition);

    void updateOrderState(StoreProcurementParam storeProcurementParam);
}
